var ioc = {
	conf: {
		type: "org.nutz.ioc.impl.PropertiesProxy",
		fields: {
			paths: ["custom/"]
		}
	},

	dataSource: {
		type: "com.alibaba.druid.pool.DruidDataSource",
		events: {
			create: "init",
			depose: 'close'
		},
		args: ["com.alibaba.druid.pool.DruidDataSource", "db."],
		factory: "$conf#make",
		/*
		fields: {
			driverClassName: 'org.h2.Driver',
			url: 'jdbc:h2:file:./database/h2db',
			username: 'sa',
			password: '',
			initialSize: 1,
			minIdle: 1,
			maxActive: 2,
			maxWait: 60000,
			timeBetweenEvictionRunsMillis: 60000,
			minEvictableIdleTimeMillis: 300000,
			poolPreparedStatements: true,
			maxPoolPreparedStatementPerConnectionSize: 20,
			testWhileIdle: true
		}
		*/
	},
	dao: {
		type: "org.nutz.dao.impl.NutDao",
		args: [{ refer: "dataSource" }]
	}
}
